package game.banana.server.util;

import java.util.List;

public class GameUtil {
	public static boolean isNullOrEmpty(Object obj) {
		if(obj == null) {
			return true;
		}
		if(obj instanceof List) {
			List list = (List) obj;
			if(list.isEmpty()) {
				return true;
			}
		} else if(obj instanceof String) {
			String strObj = (String) obj;
			if(strObj.length() == 0) {
				return true;
			}
		}
		return false;
	}
}
